package com.boot.main.mapper;

import com.boot.main.entity.ScomCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ScomCategoryMapper {
    List<ScomCategory> getCategorys(@Param("userId") Long userId);
    List<ScomCategory> getCategoryByStatus(@Param("status") Integer status, @Param("userId") Long userId);
    ScomCategory getCategoryById(@Param("id") Long id);
    Integer getTotalCount();
    Integer saveCategory(ScomCategory category);
    Integer updateCategory(ScomCategory category);
    Integer deleteCategory(@Param("id") Long id);
}
